<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>文件上传和下载</title>
</head>
<body>
<form th:action="@{http://localhost:8080/file/upload}" method="post" enctype="multipart/form-data">
    <input th:type="file" name="file">
    <button type="submit">上传</button>
</form>
</body>
</html>